<template>
  <h3>Child</h3>
  <button @click="clickEventHandle">传递数据</button>
</template>

<script>
export default {
  data() {
    return {
      msg: 'Child数据!'
    }
  }
  , methods: {
    clickEventHandle() {
      // console.log('hhh');
      // 自定义事件
      this.$emit('someEvent', this.msg)

    }
  }
}
</script>